package com.danskin.wechat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.danskin.wechat.entity.WxMenuInfo;
import com.danskin.wechat.entity.example.WxMenuInfoExample;
import com.danskin.wechat.vo.WxMenuInfoVo;

public interface WxMenuInfoDao {
	long countByEntity(WxMenuInfo entity);

	int deleteByExample(WxMenuInfoExample example);

	int deleteByPrimaryKey(@Param("id") int id, @Param("mpId")  int mpId);

	int insert(WxMenuInfo record);
 
	List<WxMenuInfo> selectByExample(WxMenuInfoExample example);

	List<WxMenuInfo> selectByMpId(@Param("mpId") int mpId);

	WxMenuInfo selectByPrimaryKey(@Param("id") Integer id, @Param("mpId") int mpId);

	WxMenuInfoVo selectByMenuKey(@Param("menuKey") String menuKey, @Param("mpId") int mpId); 

	int updateByExampleSelective(@Param("record") WxMenuInfo record, @Param("example") WxMenuInfoExample example);

	int updateByExample(@Param("record") WxMenuInfo record, @Param("example") WxMenuInfoExample example);

	int updateByPrimaryKeySelective(WxMenuInfo record);

	int updateByPrimaryKey(WxMenuInfo record);

}